﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SportsStore.WebUI.Models;

namespace SportsStore.WebUI.Controllers
{
    public class CompanyController : Controller
    {
        //
        // GET: /Company/

        

        public ViewResult BriefIntro()
        {
            ViewBag.CurrentItem = "BriefIntro";
            Dictionary<string,string> breadCrumb = new Dictionary<string, string>(){{"公司首页","/"},{"公司简介",""}};
            CompanyPageViewModel viewModel = new CompanyPageViewModel { CompanyIntroMenu = GetLeftNavBar(), BreadCrumb = breadCrumb};
            return View(viewModel);
        }

        public ViewResult CompanyCul()
        {
            ViewBag.CurrentItem = "CompanyCul";
            Dictionary<string, string> breadCrumb = new Dictionary<string, string>() { { "公司首页", "/" }, { "企业文化", "" } };
            CompanyPageViewModel viewModel = new CompanyPageViewModel { CompanyIntroMenu = GetLeftNavBar(), BreadCrumb = breadCrumb };
            return View(viewModel);
        }

        public ViewResult LeaderWord()
        {
            ViewBag.CurrentItem = "LeaderWord";
            Dictionary<string, string> breadCrumb = new Dictionary<string, string>() { { "公司首页", "/" }, { "领导致辞", "" } };
            CompanyPageViewModel viewModel = new CompanyPageViewModel { CompanyIntroMenu = GetLeftNavBar(), BreadCrumb = breadCrumb };
            return View(viewModel);
        }

        public ViewResult CompanyStruc()
        {
            ViewBag.CurrentItem = "CompanyStruc";
            Dictionary<string, string> breadCrumb = new Dictionary<string, string>() { { "公司首页", "/" }, { "公司结构", "" } };
            CompanyPageViewModel viewModel = new CompanyPageViewModel { CompanyIntroMenu = GetLeftNavBar(), BreadCrumb = breadCrumb };
            return View(viewModel);
        }


        private Dictionary<string,string> GetLeftNavBar()
        {
            Dictionary<string, string> navBarItems = new Dictionary<string, string>() { { "BriefIntro", "公司简介" },{"CompanyCul","企业文化"},{"LeaderWord","领导致辞"},{"CompanyStruc","公司结构"} };
            return navBarItems;

        }
    }
}
